package com.youfang.sixthmedia.net;

public class OpResult {
	public static OpResult OK = new OpResult(true, "");

	public boolean ok;
	public String msg;

	public OpResult() {

	}

	public OpResult(boolean ok, String msg) {
		super();
		this.ok = ok;
		this.msg = msg;
	}

	public static OpResult fail(String msg) {
		OpResult r = new OpResult();
		r.ok = false;
		r.msg = msg;
		return r;

	}

	public boolean isOk() {
		return ok;
	}

	public void setOk(boolean ok) {
		this.ok = ok;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
